using System;

using Microsoft.SPOT;
using Microsoft.SPOT.Input;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Media;

using FusionWare.SPOT.Hardware;

namespace $safeprojectname$
{
    /// <summary>Core apllication object for the application</summary>
    public class App : FusionWare.SPOT.Application
    {
        #region Application Entry Point
        /// <summary>Main entry point for the application</summary>
        public static void Main()
        {
            // Init and run the application main window
            App theApp = new App();
            theApp.Run(theApp.MainWindow);
        }
        #endregion

        #region Constructor
        /// <summary>Constructor for the application object</summary>
        /// <remarks>
        /// Creates a new Full Screen BouncyViewWindow as the
        /// main window for the application.
        /// </remarks>
        App() : base(App.ButtonDefs)
        {
            this.MainWindow = new MainViewWindow();
            this.MainWindow.Height = SystemMetrics.ScreenHeight;
            this.MainWindow.Width = SystemMetrics.ScreenWidth;
        }
        #endregion

        #region Button Definitions
        /// <summary>Button Definitions for this application</summary>
        /// <remarks>
        /// For Demo purposes defines all the directions and select button. 
        /// Currently the only one actually used in this application is the select button.
        /// </remarks>
        static ButtonDefinition[] ButtonDefs = {
                // TODO: Add button definitions here for this application
                // new ButtonDefinition(Button.Up, true, Pins.SW5),
                // new ButtonDefinition(Button.Left, true, Pins.SW6),
                // new ButtonDefinition(Button.Select, false, Pins.SW7),
                // new ButtonDefinition(Button.Right, true, Pins.SW8),
                // new ButtonDefinition(Button.Down, true, Pins.SW9) 
        };
        #endregion
    }
}
